#ifndef EDIT_LANGUAGE_VIEW_H
#define EDIT_LANGUAGE_VIEW_H

#include <QWidget>
#include <QModelIndex>
#include <QComboBox>

QT_BEGIN_NAMESPACE
class QLabel;
class QLineEdit;
class QTextEdit;
class QItemSelectionModel;
class QModelIndex;
class QCheckBox;
QT_END_NAMESPACE

class LanguageModel;
class SymbolModel;

class EditLanguageView : public QWidget
{
    Q_OBJECT
    
public:

    explicit EditLanguageView( QWidget * parent = 0 );
    
    void setModel( LanguageModel * model ) { languageModel = model; } 
    void setModel( SymbolModel * model ) { symbolModel = model; }

    void setCurrent( const QModelIndex & current );
    
private slots:

    void valueEditingFinished();
    void statusChanged();
    
private:

    QItemSelectionModel
        * selectionModel;
    LanguageModel
        * languageModel;
    SymbolModel
        * symbolModel;
    QModelIndex
        currentIndex;
    QLabel
        * statusLabel,
        * valueLabel,
        * descriptionLabel,
        * descriptionTextLabel;
    QTextEdit
        * valueEdit;
    QComboBox
        * statusBox;
    int
        currentSymbolIndex,
        currentRow;

};

#endif